package cn.juque.systemservice.entity;

import cn.juque.systemservice.entity.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * @author JUQUE
 * @version 1.0.0
 * <li>simple-generator</li>
 * <li></li>
 * @date 2021-10-06 18:47:24
 **/
@Data
@TableName(value = "SYS_ROLE_DATA_RELATION")
public class RoleDataRelation extends BaseEntity {

    /**
     * 数据权限ID
     */
    @TableId(value = "ID", type = IdType.ASSIGN_UUID)
    private String id;

    /**
     * 角色ID
     */
    @TableField(value = "ROLE_ID")
    private String roleId;

    /**
     * 业务表名
     */
    @TableField(value = "AUTH_DATA_ID")
    private Long authDataId;

    /**
     * 权限范围
     */
    @TableField(value = "AUTH_SCOPE_TYPE")
    private Integer authScopeType;

    /**
     * 是否含下级
     */
    @TableField(value = "INCLUDE_SUB")
    private Integer includeSub;

}
